home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
LCLINT-D.SPK
/
lclint
/
guide
/
switch.c
< prev
next >
Wrap
Text File
|
1996-08-26
|
257b
|
16 lines
typedef enum {
YES, NO, DEFINITELY,
PROBABLY, MAYBE } ynm;
void decide (ynm y)
{
switch (y)
{
case PROBABLY:
case NO: printf ("No!");
case MAYBE: printf ("Maybe");
/*@fallthrough@*/
case YES: printf ("Yes!");
}
}